app env, app config & fix view helpers