rewrite to composer package