move exec to own js