fixed not, added a few standard functions