fix execution order + add frontend only script