enhance app options for debug and env