added chunk loading and unloading