added session and meteor support