src.main replaces the identical main functions in api and dispersyinstance. run_api.sh calls the api directly, similar to run.sh