added inline support