better support for labels and selectors
implement a sample function working in the IDE