logging configuration and cmd line parsing