added platform, adapted services to use new platform
Fixed handler.
fixed platform bugs.