adapt for eggdrop