fix http handler, now working