add requesthandling, make message more flexible, some fixes