added debug code for dotcloud bug