modulize the nths client