we should not be calling this from our views