fix logging in standalone. allow debugging of standalone.