various utility/support functions for various events