added generic inlines support