throw an error when calling load or unload is not allowed