version 0.3.0: updated for TS v1.0