use app_dir provided by main args