fix behaviour factory and remove a bit of logging