try to fit redis code into a project structure