dont call scope apply if digest is already in progress, and remove old code