parse out static and dynamic dependencies