added config function