began to modify memory.js adapter to include select function