move base scripts to engine