Integrate profiles
fix stream exceptions