some frontend magic