added KVDB dependency and fake UUID
fixed redirect code