initial commit, tested only with iphone