complete code rebase (old code in .php.bak files)