added retrieve binary content method fix