some misstakes on creating api app