changed get return value to be compatible with application:get_env