added then and fail conditions to box proxy