add magic code for debugging