added lowercase structkeys and fixed bug in getByStructs