added a function for hot-reloading packages