added prepend command
changed from echo to printf