added is writable check for docs folder