sorting out permissions hopefully