still something wrong with closeinput and then back to use closeallinput binary