removing dependencies to the platform from within the document