paths refactoring
sys functions update