support normal import files(without weirdo pig prefix), support stdin