commit before forking for ajax