update hal-plugin, remove swap files and add a scheduler