added cast pages
fix small bugs