convert to datascript

wip