imported relevent functions to master.js