init setup to run tunely with old js file