better than using perl, anyway