add optional arugments for loadfile to set option