remove checkfilename, add support for ohter files