tweak environment handling
adjust loglevels and replay annotation