add build helpers
include resource and code files
add state machine section