make API more friendly