added output sent, added location