commit before the usage of apm