basic, unfinished input management + z-ordering