check the file extension before requiring
Split out descartes logic, prevent nilClass errors
v