changed --d parameter to deprecated, return error if guid not found