js only starting to work
make api easier to use