use Filename library insted of parsing result string