initial support for non-browser environments