added support for undefined directories
added support for partial syncing