suports file input
bugfix