moved pipeline, added statesystem