replace annoying optval variable with compound literal thanks to freestyl3r