fixed some bugs and added test flight sdk