fixed serveral bugs and updated packages