primitive sess compiler