updated code to make gets more safe, have a bool related bug though, I think, otherwise its an interface related one