moved file extension check to get method, to overcome key file or repo file downloads