check if source is written/renamed correctly

Resolves #293 issue