correctly use lightweight resource attributes