dont use both file and url