but i was doomed to live ; and , in two months , found myself as awaking from a dream , in a prison , stretched on a wretched bed , surrounded by gaolers , turnkeys , bolts , and all the miserable apparatus of a dungeon .