some debug messages and swap for two paths