fixups key processing
filename fix
fixed message endless recursive function call
bring back up the qsp and message sending stuff