add continuation spec in scala