fixed initialization + debug setting