solves error message if file doesn't exist
WIP: solving for if a function doesn't exist