more robust reload checking
add all event handlers and skeleton logic functions