added possibility to play files and dirs