fix keys, add uid timestamp, fix unpipe fn