added custom exceptions
remove unnecessary env settings