added detection for functions which need activation objects