tweaked handling of process-role template