fixing dev vs prod code