remove superfluous imports and print debug