added support for SNS and made compatible with typescript 0.9