some logging
support for None as a state