fixed bug regarding small buffer sizes, better retrieval informatics