use macro to distinguish touchtype and filedirection