merge config and options