init vars from arguments