cleaner way of doing default for composer