catch case of no block given
add method to return config