enable hot code reload

Following discussions on issue #5