added first version based on zenity