init from play2 samples
fix deadlock problem