moved position of warn and console