fix bugs in retrieve.r and the Blockr_base method definitions