make updated changes to new slim framework