remove debug and env-specific codes