fixed some errors and updated dependencies