added dependencies, fixed warnings.