why not use a tool like commander

no need to reinvent the wheel