adding root path and validation