doesn't devise capture this functionality?