fixed import codes script for code types