fixing file reference issues