add new api

new api made user can change the vars during the run time