move cgminer config to seperate module