modularize tcs