updated some programs to use new pos API