create method do set localbase.