moved field dep to module code using #states