added method to load from url