compile fix + debug output