fixed http emit
added print and array helpers