fixed typo in script import, dynamically load debug script, fixed missing ProtoBuf initialization