add a local API otpion and load file from the command line