add getNextEntry functions that return bool based on file access
merge