added flex library