logger improvement
cors expose with caps
tests fixes