rename "lib" dir to "src"
optimize once method
fix compilation persistence (inactive for now)