refactored for apache / node deployment
refactored for apache / node deployment