no more segfaulting, get still not working, not sure about put