fixes errors and add ios stuff