add salix repos and fix source code