removed glob() dependency