aloha implementation