prevented panic from crossing library; will return nil incase of panic