* move functions from capture scripts (track, follow, onepercent) to library and remove duplicate code [ @todo: test onepercent! ]