cleaned up; added verifying echo output