updated capi stuff and added devise key