code refactored
debug renderer extended