setting keys properly, working on reply being set properly