all configs passed into constructor now, no more hardcoded api stuff

Signed-off-by: Chris Jones <chris@jonezy.org>