modify "save" to solely run the callback when running under standalone mode