complete rewrite, using PKareas files this time