[backend] refactor putprojectconfig a bit