converting NS* <=> JS* instead of going via JSON