complete teh code and fix cnp errors arounf reding and wrtie chmods definied in the the blueprint