added event for standalone
added event to mount publish api
cleaned up argument validation for publish api