add long type support

yet another bug