added gateway override option
store logs in folder w keep_logs