added a depcheck and bugfixes