add check for opts