change main entry to class, and rewrite hooks
add forgotten menu option