added ability to use a prefix for keys