add m70setup function
add chk_filename function