added more doc hooks