moved old stuff and added synopsis for new api (wip)