Working towards api and calling convention... shell not working