moves to local, depricates state and system
local stuff wip