better solution for mapscripts