use a common lib
move log to common lib
move streamdetails and path to utils lib