added debugging echo at first line