parse config that was passed
use a server stuct, to not pass around to much stuff