make exists work

fixes #4