improving permissions support