remove unneeded stuff from lib