a more generic nrepl startup hook