make sure parent exist
remove logs
Merge pull request #9 from Tjatse/master

make sure parent exist