initial support for server side rendering. #1