#344 changed order of -g install due to performance issue.