get key from config