work on fixing bugs in the ios build