replaced service (for tick()) with RsThread