raise error on none config

Attempt to solve #38 

This is work in progress.