refactor template arg parsing into static method; this may prevent a future fork...