syntax fixes and adjustments for nilclass' sockethub lib