hack & handle mixed files