variable bugfile

maxdepth didnt fully get converted to a class variable