improved contracts interface