added config file
refactored with Connection module