error handling in star/unstar