use local source if remote is not available