trying fix permissions in generic classes