[flex] implementing the flex imports.