dependency api parse more robust