added optional sid function to get stripped ids and fixed stateful prop bug