adding print statements to debug, handling propagation commands