mod resource logic