Fixes issue #310

now checks whether provides is used.