making lightweighter api