adapt to stored proc and installs