message should match js library