Moar WIP, adjusted some internal stuff
fixed chunk handling