initial config support as per #23, closes #19