added error messages and dependency