complete the data reading part
fix reader crash
fix more crashes and add permissions
get everything working finally