retain objects on stack. close #10

this prevents object from being accidentally deleted during read or write into its memory