shuffling of things to simplify and get us a stateless script block