updated the neptune handler to work on produciton like env