added directory and file support, commande args