some error case checks
Merge pull request #4 from rohiniwork/binary_relativename

some error case checks