isDev moved to sesssion