add module to different functions in portfolio