some preliminary setup checkings and rust removals