changed packaging of relay begin