tidy-up cloud proxy codes