account for doi shoulders, check for NPE