returning error instead of filepath when less error occurs