add listrefs, touch etc as a js command
fix some minor errors