added services table and fixed bug