solved compiler issues, although this still doesn't work.