added sphinx doc hooks