Revert "Revert "added config files""

This reverts commit 60048653d98a9e16fedc381725073257b4e7fc76.
better file handling