more migration to js builder (does not compile)