two helpful scripts