core xy functionality

this is a working copy of the corexy code