fix, now working and a http handler
fix static function
added httphandler to makefile and fix to correctly inherit handler