working on resource rating and removed some debug file outputs