added pyretic runtime modification