fixed api for nested modules