Made appName configurable (for rc- loading env variables, rc config files, etc.)