bug fixes for task exec and better subclassing