add some properties that we can set via passing in a table
cleanup example a little bit