adding debuglevel to exports for testing