extract autostarts
extract some client functions