restrictured code, added ceilometer api