added lib stuff