add explicit construction (for MSVC) and some debug messages