adding in librarry checking
integrated my own checking system