added max length of path