improved project decoupling in examples