fixes #737
moving debuglog to common