refactored local setup to desired.js