fixed various bugs; better particle lifetime management