fixed some schematic bugs, however need to learn a bit more about this.