new implementation for moki connection