implement right rail behavior

hoky fuck this was tricky. It needs a massive cleanup, but ill do that shit later.
right rail work, wip
remove unused file