set default hash for opts param