core: drawing border works