added logs; fixed typo
