improve todo script (in dev)