fixed logging, made it run inside yaas