better source positions for programmatically added imports