simple loc script