added decorator for karma and resources