reloading code works, but is hacky