added more useful syntaxerror messages
added loader