use tap_get_tms_path_len() instead of fix # of 7.