remove usage of debug_message() (fix #40)