converted to boxstart script