added functions for printing paths during debug