add file configuration scheme
also cleanup module