added debug mode system so we can easily track memory obstructions