use less globals in getModality, wm timing files to include when changes happen