adding initialize function and other script refs