improve packages structures, settings, configs, and prepare the state_engine building