split into config and fetch phase

Signed-off-by: Michael Weber <michael@xmw.de>