debugging and added echo commands so users know what's going on or where things might be breaking