fixing plugins and dependencies to work with require optimizer and builder