improve allegro plugin