added email lib
created some rules