use strtok_r instead of strsep and bind multiple keys to a single queue
don't trim newlines from input