added file not found exception handling