(wip) draft for main script