fixed obj id error, cookie error now raised instead