get rid of that stupid preg match stuff