generalized handling cask apps