updated packages
added type definition