fixed import and encoding problem