add some utilities for interface js