added safety check for ensime