fix existence error handling