fixing dev vs prod code again