first step towards including config in callback