add server-side listener for development