working on only loading scripts once