our aceperl+giface+asAce returns not always what the script expects, so I replaced the regular expressions with method calls.