bugfixes, works now (tested only with vpk files)