How to make sequences work with apigility