updated movment to use config