fixed referencing bug
updated buildfiles