moving logs code to devs modules