added some magic to the syntax detection