better tags error message, small bug fix