several optimizations and fixes, lsyncd setup added