debug macros now more readable
added function to check if a class is available