implement service for processing pkg file