moved everything to Links class