check dependencies and inputs