update todo
drop unneeded function
introduce config file
better use logging system here