add comment about handling different flag forms, change DO_SHIFT to just SHIFT