added -N flag for getting scan resources