base framwork init