added port to config
fixed bug with unmarshalling
added logging