added iOS thread sleep possibilities