script to get factory details