added error class, root, path (with or with out path) works and 404