fix client resource specs and regenerate key function