added debug messages to smart moving support