move stallman mode to hook