this was fastened to an ingenious mechanism-brianna 's invention-fixed to the beam above the bed , so that when unrolled , the cloth fell down on all sides , shielding us from the bloodthirsty hordes of the summer nights .