implemented define/start/undefine/changeAutoStart;
some fixes;