Handling resolve and trying without extension