add js to scope mst
add correct code from swan
add js for chx and spi
add reg ex to get rid of number of entries