retrieve values from config
bug ugly ?