fixed permission bug and added cascades