fixed some bugs related to logging size when contacting to cloudforms