added some protection to getObject