remove comments and extra logs