moved script funcs to namespace, started native demo state