implement temporary posts sort and add .R files