adapt source file as well