add rails and update php