rework installing and logging
fixing scripts