removed unused things
added pacaur to p upgrade and added kn() function