factor out surface/bootstrap.sjs