fixing restarts, glob returns a list