license and comments
avoid anonymous function handlers.