adds some hooks for alamid framework