program loading/unloading support added