added local dict injection functionality