add config and hash