buffer sizes corrected. debug configuration introduced