adding some backend php stuff