Stuff on smach and handkling error & customizing