hook specification sourcecode