integration with code flow #1