accept cmd line args, use logging