cleaned up console functoins